package com.example.invoicing.service;

import com.example.invoicing.dao.InboundOutboundMapper;
import com.example.invoicing.dao.SalesRecordMapper;
import com.example.invoicing.pojo.InboundOutbound;
import com.example.invoicing.pojo.SalesRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalesRecordService {
    @Autowired
    private SalesRecordMapper salesRecordMapper;

    public int deleteByPrimaryKey(String id){
        return salesRecordMapper.deleteByPrimaryKey(id);
    }


    public int insertSelective(SalesRecord record){
        return salesRecordMapper.insertSelective(record);
    }

    public SalesRecord selectByPrimaryKey(String id){
        return salesRecordMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SalesRecord record){
        return salesRecordMapper.updateByPrimaryKeySelective(record);
    }

    public List<SalesRecord> querySalesRecordList(SalesRecord record){
        return salesRecordMapper.querySalesRecordList(record);
    }

    public int queryCountLike(SalesRecord record){
        return salesRecordMapper.queryCountLike(record);
    }

}
